# 前端 Dockerfile
FROM node:20-bullseye-slim AS builder
WORKDIR /app
COPY . .
RUN npm config set registry https://registry.npmmirror.com \
    && npm install && npm run build

FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80